﻿@model BenzInfo.Hockey.LHRAF.Models.User
           
@using MvcEnumDropDownList.Helpers;
@{ 
    ViewBag.Title = BenzInfo.Hockey.LHRAF.Resources.Dictionary.Login; 
} 

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script> 
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script> 
<script type="text/javascript">
    $(document).keypress(function (e) {
        if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
            $('form').submit();
            return false;
        }
    });	
</script>

@using (Html.BeginForm("LogOn", "Users", FormMethod.Post, null))
{ 
    @Html.ValidationSummary(true) 
    <fieldset>
        <legend>@BenzInfo.Hockey.LHRAF.Resources.Dictionary.User</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserName) 
        </div> 
        <div class="editor-field"> 
            @Html.EditorFor(model => model.UserName) 
            @Html.ValidationMessageFor(model => model.UserName) 
        </div> 

        <div class="editor-label"> 
            @Html.LabelFor(model => model.Password) 
        </div> 
        <div class="editor-field"> 
            @Html.EditorFor(model => model.Password) 
            @Html.ValidationMessageFor(model => model.Password) 
        </div> 
    </fieldset>
} 